package com.tc.service;

import com.github.pagehelper.PageInfo;
import com.tc.pojo.Dictionary;

import java.util.List;

/****
 * @Author:admin
 * @Description:Dictionary业务层接口
 * @Date 2019/6/14 0:16
 *****/
public interface DictionaryService {

    /***
     * Dictionary多条件分页查询
     * @param dictionary
     * @param page
     * @param size
     * @return
     */
    PageInfo<Dictionary> findPage(Dictionary dictionary, int page, int size);

    /***
     * Dictionary分页查询
     * @param page
     * @param size
     * @return
     */
    PageInfo<Dictionary> findPage(int page, int size);

    /***
     * Dictionary多条件搜索方法
     * @param dictionary
     * @return
     */
    List<Dictionary> findList(Dictionary dictionary);

    /***
     * 删除Dictionary
     * @param id
     */
    void delete(Integer id);

    /***
     * 修改Dictionary数据
     * @param dictionary
     */
    void update(Dictionary dictionary);

    /***
     * 新增Dictionary
     * @param dictionary
     */
    void add(Dictionary dictionary);

    /**
     * 根据ID查询Dictionary
     * @param id
     * @return
     */
     Dictionary findById(Integer id);

    /***
     * 查询所有Dictionary
     * @return
     */
    List<Dictionary> findAll();
}
